package com.sdy.hospitalguard.biz.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdy.common.model.BaseModel;
import com.sdy.common.utils.DateUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 探视预约表
 * </p>
 *
 * @author zzq
 * @since 2020-05-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class VisitAppointment extends BaseModel {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId
    @ApiModelProperty(value = "ID")
    private Integer id;

    /**
     * 患者表ID
     */
    @ApiModelProperty(value = "患者表ID")
    private Integer patientId;

    /**
     * 用户ID
     */

    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    /**
     * 预约日期
     */
    @ApiModelProperty(value = "预约日期")
    @JsonFormat(pattern = DateUtil.DATE_FORMAT)
    private Date visitDate;

    /**
     * 预约开始探视时间
     */
    @ApiModelProperty(value = "预约开始探视时间")
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date visitStartTime;

    /**
     * 预约探视结束时间
     */
    @ApiModelProperty(value = "预约探视结束时间")
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date visitEndTime;

    /**
     * 实际开始时间
     */
    @ApiModelProperty(value = "实际开始时间")
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date practicalStartTime;

    /**
     * 实际结束时间
     */
    @ApiModelProperty(value = "实际结束时间")
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date practicalEndTime;

    /**
     * 拒绝理由/ ----------------废除-----------------
     */
    @ApiModelProperty(value = "拒绝理由/ ----------------已废除-----------------")
    private String objection;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 预约状态 0:已同意 1:未同意 2: 待审核 3.异常
     */
    @ApiModelProperty(value = "0:已同意 1:未同意 2: 待审核 3.异常")
    private Integer appointmentState;

    /**
     * 探视状态 0:未探视 1:探视中 2:已探视 3:过期 4.待审核
     */
    @ApiModelProperty(value = "探视状态 0:未探视 1:探视中 2:已探视 3:过期 4.待审核 5.拒绝")
    private Integer visitState;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date createTime;

    /**
     * 患者出院状态：0正常(未出院), 1失效(出院)
     */
    private Integer status;

}
